import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { Select, Store } from '@ngxs/store';
import { IRouteTab } from '../../joy-abpui-angular';

@Component({
  selector: 'app-test1',
  templateUrl: './test1.component.html',
  styleUrls: ['./test1.component.less'],
})
export class Test1Component implements OnInit, IRouteTab {
  routeId: string;
  routeName: string;
  routeTabUrl: string;
  routeTabParams: any;
  constructor(private store: Store, private router: Router) {
    const root = this.router.routerState.snapshot.root;
    const url: string = root.url.join('');

    console.log(url);
  }

  ngOnInit(): void {
    console.log('Test1Component init');
  }
}
